package cn.wolfcode.luowowo.mgrsite.controller;

import cn.wolfcode.luowowo.article.service.IStrategyTagService;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/strategyTag")
public class StrategyTagController {

    @Reference
    private IStrategyTagService strategyTagService;

    @RequestMapping("/list")
    public String list(QueryObject qo,Model model){
        PageInfo pageInfo = strategyTagService.query(qo);
        model.addAttribute("pageInfo",pageInfo);
        return "strategyTag/list";
    }
}
